﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Tim.aspx.cs" Inherits="Tim"
    MasterPageFile="~/Site.master" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div class="category-products home-page-listing">
        <div class=" jcarousel-skin-tango">
            <div class="jcarousel-container jcarousel-container-horizontal" style="position: relative;
                display: block;">
                <div class="jcarousel-clip jcarousel-clip-horizontal" style="position: relative;">
                    <ul id="mycarousel" class="jcarousel-list jcarousel-list-horizontal" style="overflow: hidden;
                        position: relative; top: 0px; margin: 0px; padding: 0px; left: 0px; width: 2341px;">
                        <% 
                            string query = Request.QueryString["q"];
                            System.Data.DataSet ds = new System.Data.DataSet();
                            OTOWeb.DataOut ot = new OTOWeb.DataOut();
                            ds = ot.Web_Search(query);
                                %>
                                <div style="color:#FFBF00; font-size:large; margin-bottom:10px;"><% Response.Write("Tìm thấy " + ds.Tables[0].Rows.Count.ToString() + " kết quả với từ khóa <b>\"" + query + "\"</b>");%></div>
                                <%
                                foreach (System.Data.DataRow item in ds.Tables[0].Rows)
                                {
                        %>
                        <li class="jcarousel-item jcarousel-item-horizontal jcarousel-item-1 jcarousel-item-1-horizontal"
                            style="float: left; list-style: none;" jcarouselindex="1"><a href="ChiTiet.aspx?MaXe=<%Response.Write(item["MAXE"].ToString()); %>"
                                title="" class="product-image">
                                <img src="<%Response.Write(item["HINHANH"].ToString()); %>" width="230" height="230"
                                    alt=""></a>
                            <h2 class="product-name">
                                <a href="ChiTiet.aspx?MaXe=<%Response.Write(item["MAXE"].ToString()); %>" title="">
                                    <%Response.Write(item["TENXE"].ToString()); %></a></a></h2>
                            <div class="pro-price-add-btn">
                                <div class="product-price">
                                    <div class="price-box">
                                        <span class="regular-price" id="product-price-1"><span class="price">
                                            <%Response.Write(item["GIABAN"].ToString()); %></a></span> </span>
                                    </div>
                                </div>
                                <div class="new_prod_btn">
                                    <button type="button" title="Add to Cart" class="button btn-cart" onclick="setLocation('#')">
                                        <span><span>Add to Cart</span></span></button>
                                </div>
                            </div>
                            <div class="wish-compare">
                                <ul class="add-to-links">
                                    <li><a href="#" class="link-wishlist">Add to Wishlist</a></li>
                                    <li>
                                        <!--span class="separator">|</span-->
                                        <a href="#" class="link-compare">Add to Compare</a></li>
                                </ul>
                            </div>
                        </li>
                        <% }%>
                    </ul>
                </div>
                <div class="jcarousel-prev jcarousel-prev-horizontal jcarousel-prev-disabled jcarousel-prev-disabled-horizontal"
                    style="display: block;" disabled="true">
                </div>
                <div class="jcarousel-next jcarousel-next-horizontal" style="display: block;" disabled="false">
                </div>
            </div>
        </div>
    </div>
</asp:Content>
